//
//  VOHClassifyView.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/15.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHClassifyView.h"
#import "VOHButton.h"

@interface VOHClassifyView ()

@property(nonatomic, strong)UILabel *titleLabel;
@property(nonatomic, strong)UIButton *detailBtn;

@end

@implementation VOHClassifyView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setUpView];
    }
    return self;
}


-(void)setUpView{

    
    UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
    flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
    flowLayout.minimumInteritemSpacing = 0;
    
    flowLayout.itemSize = CGSizeMake(ScreenWidth * 0.5, 175);
    
    flowLayout.headerReferenceSize = CGSizeMake(ScreenWidth, 40);
    self.collection = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, self.bounds.size.height) collectionViewLayout:flowLayout];
    [self addSubview:self.collection];
    
    [self.collection setScrollEnabled:NO];
    
    self.collection.backgroundColor = [UIColor whiteColor];
}


@end
